﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">
    Welcome
</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
<!--
<script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2" type="text/javascript"></script>
<script src="/Scripts/Map.js" type="text/javascript"></script>
-->
<img id="pagePreview" runat="server" align="right" src="~/Content/Stock2.jpg" height="350" style="padding-right:50px" />
<h2>Welcome to StockExchanger</h2>
<!--
<div id="mapDivLeft">

    <div id="searchBox">
-->
        Search for your query: <%= Html.TextBox("Location") %> or <%= Html.ActionLink("View All Share Listing", "ShareList", "Stock") %>.
        <input id="search" type="submit" value="Search" />
<!--    </div>

    <div id="theMap">
    </div>
-->
<!--
</div>

<div id="mapDivRight">
    <div id="DseList"></div>
</div>
-->
    <p>
        StockExchanger is an online software application designed to help you buy, sell & organize your stock exchange shares.
        You will have a record on when you bought or sold an item, how much you spent, what is your current balance and more features to come...
    </p>
    <p>
        some example users are  iceslice01, iceslice03, [iceslice00-09], all passwords are same as 123456
    </p>
    <p>
        For more go to <%= Html.ActionLink("About", "About", "Home")%>.
    </p>
 
    <% if (!Request.IsAuthenticated) { %>
    <p>
        <%=Html.ActionLink("Sign in now!", "Logon", "Account", null, new{ @class = "special" })%>
        <%=Html.ActionLink("No account yet?", "Register", "Account")%>
    </p>
    <% } else { %>
        <%=Html.ActionLink("My Ledger Report", "Ledger", "Stock", null, new{ @class = "special" })%>
    <% } %>

<!--
<script type="text/javascript">

    $(document).ready(function() {
        LoadMap();
    });

    $("#search").click(function(evt) {
        var where = jQuery.trim($("#Location").val());
        if (where.length < 1) 
            return;

        FindStockGivenLocation(where);
    });

</script>
-->
</asp:Content>
